package com.mapgis.utils

import java.text.SimpleDateFormat
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

object DateUtils {
    def getLocalDateTime() ={
        val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")
        val dateTime = LocalDateTime.now()
        dateTime.format(formatter)
    }

    def main(args: Array[String]): Unit = {
        println(getLocalDateTime())
    }
}
